package mr.ali.videoapp.portal.controller;


import mr.ali.videoapp.portal.model.CollectionActor;
import mr.ali.videoapp.portal.service.ICollectionActorService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Mr-ali
 * @since 2025-06-01
 */
@RestController
@RequestMapping("/portal/collectionActor")
public class CollectionActorController {
    @Resource
    private ICollectionActorService collectionActorService;
    /**
     * 根据视频videoid查询相关的的演员
     */

    @GetMapping("/videoId")
    public List<CollectionActor> getCollectionActorByVideoId(Integer Id) {
        return collectionActorService.getCollectionActorByVideoId(Id);
    }
}
